//
//  MYTempViewController.swift
//  MYWeibo
//
//  Created by Magic Yu on 16/4/13.
//  Copyright © 2016年 Magic Yu. All rights reserved.
//

import UIKit

class MYTempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

//        view.backgroundColor = UIColor.redColor()
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(imageName: "navigationbar_friendsearch",  target: self, action: "push")
    }

    @objc private func push() {
        print("pop")
        let temp = MYTempViewController()
        //push到子页面
        navigationController?.pushViewController(temp, animated: true)
        
        
    }


}
